package stack;

import linkedlist.LinkedListStack;

public class StackTest {
    public static void main(String[] args) {
        Stack<String> stack = new LinkedListStack<>();
        stack.push("王开琦");
        stack.push("张三");
        stack.push("里斯");
        System.out.println("stack = " + stack);
        System.out.println("stack.getSize() = " + stack.getSize());
        System.out.println("stack.isEmpty() = " + stack.isEmpty());
        System.out.println("stack.pop() = " + stack.pop());
        System.out.println("stack = " + stack);
        System.out.println("stack.peek() = " + stack.peek());
        System.out.println("stack.getSize() = " + stack.getSize());

    }
}
